import { mapGetters, mapActions } from "vuex";

export default {
  methods: {
    ...mapActions(["SetGlobalProjectId", "SetGlobalProject", "SetGlobalProjectList"]),
    updateDataByProject() {
      // Default Update function'
      // console.log('Default Update function')
    },
  },
  computed: {
    ...mapGetters(["globalProjectId", "globalProject", "globalProjectList"]),
  },
  watch: {
    "$store.getters.globalProjectId": function (newVal, oldVal) {
      // console.log('globalProjectId changed:', newVal, oldVal);
      this.updateDataByProject();
    },
  },
};
